package htdi.spring.helloworld.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloController {
    @RequestMapping("/")
    public ModelAndView sayHello() {
        ModelAndView view = new ModelAndView("/sayHello.html");
        view.addObject("message", "测试 Hello Jenkins Test 听一下 666 看看"); 
        view.addObject("name", "Spring Boot");
        view.addObject("version", "2.x");
        return view;
    }
}
